/* @(#)GSAfficheAction.java    V0.1
 *
 * Project: NEWGS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   owen         2006-5-24
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;

import com.hitrust.gs.business.GSAfficheProcessor;
import com.hitrust.gs.form.GSAfficheForm;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.util.page.ResultProcess;

/**
 * 查询公告信息
 */
public class GSAfficheQueryAction extends GSBaseAction{

   public String execute(GSBaseForm aForm) throws Exception {
   
       GSAfficheForm tForm=(GSAfficheForm)aForm;
       try{
       
       ArrayList tList = GSAfficheProcessor.getOtherAffiche(tForm);
       ResultProcess tRsProc = new ResultProcess();
       tRsProc.setResult(tList);
       
       
       tForm.getRequest().setAttribute("affichelist",tRsProc);
    
       aForm.getRequest().setAttribute("requery","false");
       
   }
   catch(Exception e){
       tForm.getRequest().setAttribute("action","A400901.do");
       throw e;
   }
       
       return GSBaseConstants.FORWARD_SUCCESS;
    }

}
